/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2022-04-23
 * Time: 15:20
 */
public class TestDemo {
    public static void main(String[] args) {
        for (int i = 1; i <= 100; i++) {
            if (i % 3 != 0 && i % 5 != 0) {
                i++;
                continue;
            }
            System.out.println(i);
        }
    }
}